package cn.dt.ymcc;

import cn.dt.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient(value = "service-course",fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseFeignClient {
    @RequestMapping(value = "/courseUserLearn/getUserlearnByCourseIdAndLoginId/{courseId}/{loginId}",method = RequestMethod.GET)
    JSONResult getUserlearnByCourseIdAndLoginId(
            @PathVariable("courseId")Long courseId,
            @PathVariable("loginId")Long loginId );

    @RequestMapping(value = "/course/info/{courseIds}",method = RequestMethod.GET)
    JSONResult getOrderInfo(@PathVariable("courseIds")String courseIds);
}
